Using Consul to configure properties of multiple Flogo apps

Using Consul, you can configure the properties of multiple Flogo apps running on the Data Plane. This platform can help you change the properties like database URL, username, password of multiple apps at once. This method prevents the additional process of updating each app separately.

Integrating Consul with TIBCO Cloud Integration

  1. In TIBCO Cloud™ Integration, go to the Environment controls Tab. Add the variable name FLOGO_APP_PROPS_CONSUL. Then, set the value for {“server_address”:<consul server address>,"acl_token":<acl_token>,"key_prefix": “/dev/ConsulDemo”}.

    Note: The keywords key_prefix and acl_token are optional. They might be required if you set the value for acl_token and define the Keys in the nested folders in Consul.
  2. Next, click the Application Variables option. You see the default values for HostPort, username, DBName and password. Lets say, there are one or more applications using the same database app properties. The properties of all the apps can be overwritten by configuring the Consul KV and adding FLOGO_APP_PROPS_CONSUL as the Engine variable.

  3. At runtime, you see the updated values that are picked up from Consul.